<%--
  Created by IntelliJ IDEA.
  User: Song
  Date: 2017/6/7
  Time: 15:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>欢迎登录后台管理系统</title>
    <link href="/static/houtai/css/style.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="/static/houtai/js/jquery-3.0.0.min.js"></script>
    <script src="/static/houtai/js/cloud.js" type="text/javascript"></script>
    <script src="/static/houtai/commons/common.js" type="text/javascript"></script>
    <script language="javascript">
        $(function(){
            $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
            $(window).resize(function(){
                $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
            })
        });
    </script>

</head>

<body style="background-color:#1c77ac; background-image:url(/static/houtai/images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">

<div id="mainBody">
    <div id="cloud1" class="cloud"></div>
    <div id="cloud2" class="cloud"></div>
</div>

<div class="logintop">
    <span>欢迎登录超市促销后台管理平台</span>
    <ul>
        <li><a href="#"></a></li>
        <li><a href="#"></a></li>
        <li><a href="#"></a></li>
    </ul>
</div>
<div class="loginbody">
    <span class="systemlogo" style="color: blue">欢迎来到超市促销后台管理系统</span>
    <form action="/sysUser/findByUser" method="post">
    <div class="loginbox">
        <ul>
            <li><input id="mobileNumber" name="mobileNumber" type="text" class="loginuser" placeholder="请输入管理员账号(手机号)"  /></li>
            <li><input id="userType" name="userType" type="hidden" value="1" class="loginuser"  /></li>
            <li><input id="pwd" name="pwd" type="password" class="loginpwd" placeholder="密码"/></li>
            <li><input  type="submit" class="loginbtn" id="loginbtn" value="登录" />
        </ul>
    </div>
    </form>
</div>
<div class="loginbm">版权所有2016  <a href="#">&nbsp;&nbsp;www.shopping.com</a>&nbsp;&nbsp;超市后台管理平台</div>
</body>
<script>
    $(function(){
        $("#loginbtn").click(function(){
            window.location.href="main.html";
//            var user=$("#user").val();
//            var pass=$("#pass").val();
//            if((user=="")||(pass=="")){
//                alert("不能为空");
//            }else{
//                $.ajax({
//                    url:common_url+"admin/selectName",
//                    data:{
//                        "name":user,
//                        "password":pass
//                    },
//                    type:"post",
//                    success:function(req){
//                        console.log(req);
//                        if(req !="false"){
//                            alert("登录成功");
//                            localStorage.setItem("loginname",user);
//                            window.location.href="main.html";
//                        }else{
//                            alert("用户名密码不存在");
//                        }
//                    },
//                    error:function(){
//                        alert("服务器超时!");
//                    }
//                })
//
//            }


        });

    });

</script>
</html>
